package com.yanqu.road.entity.activity.luckyshop;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_lucky_shop_data")
public class LuckyShopUserData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "自选大奖")
    private int rewardIdx;

    @FieldTypeAnnotation(desc = "抽奖次数")
    private int drawTimes;

    @FieldTypeAnnotation(desc = "是否领奖")
    private boolean isReward;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getRewardIdx() {
        return rewardIdx;
    }

    public void setRewardIdx(int rewardIdx) {
        if (this.rewardIdx != rewardIdx) {
            this.rewardIdx = rewardIdx;
            setUpdateOption();
        }
    }

    public int getDrawTimes() {
        return drawTimes;
    }

    public void setDrawTimes(int drawTimes) {
        if (this.drawTimes != drawTimes) {
            this.drawTimes = drawTimes;
            setUpdateOption();
        }
    }

    public boolean isReward() {
        return isReward;
    }

    public void setReward(boolean reward) {
        if (this.isReward != reward) {
            this.isReward = reward;
            setUpdateOption();
        }
    }
}
